Complete module import lines in addition to variable names
authorDan Davison <dandavison7@gmail.com>
Thu, 17 May 2012 03:03:27 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fabian@anue.biz>
Thu, 17 May 2012 03:03:27 +0000 (00:03 -0300)
commitb769c4f4244cac4754134f53687d6d2bd51d65e5
treeb7b26e39710009fdd82ace18e3a5076556752d10
parentca440010930726d2ba645941b2b1a893d5d74d50
Complete module import lines in addition to variable names

Available when using ipython v0.11. Completions on lines starting with
"from " or "import " are supplied by
IPython.core.completerlib.module_completion

ipython v0.11 configuration:

(setq python-shell-interpreter "ipython"
      python-shell-completion-setup-code
      "from IPython.core.completerlib import module_completion\n"
      python-shell-module-completion-string-code
      "';'.join(module_completion('''%s'''))\n"
      python-shell-completion-string-code
      "';'.join(get_ipython().Completer.all_completions('''%s'''))\n")
lisp/progmodes/python.el